package com.aca.market.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * catalog
 * @author 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class Catalog implements Serializable {
    /**
     * 分类id
     */
    @TableId(value = "type_id", type = IdType.AUTO)
    private Long typeId;

    /**
     * 分类名
     */
    private String typeName;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 父分类ID=0即代表一级根分类
     */
    private Long parentId;

    /**
     * 图标
     */
    private String icon;

    /**
     * 分类详情
     */
    private String detail;

    /**
     * 状态 1启用 0废弃
     */
    private Integer status;

    private static final long serialVersionUID = 1L;

}
